/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgGroupMember extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgGroupMember";
	public static final String ALIAS_FK_MEMBER_ID = "fkMemberId";
	public static final String ALIAS_FK_GROUP_ID = "fkGroupId";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * fkMemberId       db_column: fkMemberId 
     */	
	private java.lang.Integer fkMemberId;
    /**
     * fkGroupId       db_column: fkGroupId 
     */	
	private java.lang.Integer fkGroupId;
	//columns END
	
	private Integer mid;

	private Date joinDate;
	
	public Date getJoinDate() {
		return joinDate;
	}


	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}


	public Integer getMid() {
		return mid;
	}


	public void setMid(Integer mid) {
		this.mid = mid;
	}


	public SmgGroupMember(){
	}


	public void setFkMemberId(java.lang.Integer value) {
		this.fkMemberId = value;
	}
	
	public java.lang.Integer getFkMemberId() {
		return this.fkMemberId;
	}
	public void setFkGroupId(java.lang.Integer value) {
		this.fkGroupId = value;
	}
	
	public java.lang.Integer getFkGroupId() {
		return this.fkGroupId;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("FkMemberId",getFkMemberId())
			.append("FkGroupId",getFkGroupId())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgGroupMember == false) return false;
		if(this == obj) return true;
		SmgGroupMember other = (SmgGroupMember)obj;
		return new EqualsBuilder()
			.isEquals();
	}
}

